package com.c4p.im.server;

import org.springframework.beans.factory.SmartInitializingSingleton;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Component
@Async
public class ServerRunner implements SmartInitializingSingleton {
    @Override
    public void afterSingletonsInstantiated() {
        new IMServer().start();
    }
}
